home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / DTS Sample Code / Macintosh Sample Code / Monthly Releases (Compressed) / MacDTS.Sample.Code.90.02.sit / SC.014.CPlusTESample / SCN.014.CPlusTESample < prev    next >
MacBinary  |  1990-01-17  |  3.8 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Jan 17 12:14:13 1990, modified Wed Jan 17 12:14:13 1990, creator 'MPS ', type ASCII, 3313 bytes "SCN.014.CPlusTESample" , at 0xd71 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 15 53 43 4e 2e 30 31 | 34 2e 43 50 6c 75 73 54 |..SCN.01|4.CPlusT|
|00000010| 45 53 61 6d 70 6c 65 00 | 00 00 00 00 00 00 00 00 |ESample.|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 0c f1 00 | 00 01 7e a1 da 58 65 a1 |........|..~..Xe.|
|00000060| da 58 65 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.Xe.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 62 e0 00 00 |........|....b...|
|00000080| 4d 61 63 69 6e 74 6f 73 | 68 0d 53 61 6d 70 6c 65 |Macintos|h.Sample|
|00000090| 20 43 6f 64 65 20 4e 6f | 74 65 73 0d 5f 5f 5f 5f | Code No|tes.____|
|000000a0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000b0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000c0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|000000e0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 0d 20 20 20 20 20 20 |________|_. |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000110| 20 20 20 20 20 20 20 20 | 20 20 20 20 44 65 76 65 | | Deve|
|00000120| 6c 6f 70 65 72 20 54 65 | 63 68 6e 69 63 61 6c 20 |loper Te|chnical |
|00000130| 53 75 70 70 6f 72 74 0d | 0d 23 31 34 3a 09 43 50 |Support.|.#14:.CP|
|00000140| 6c 75 73 54 45 53 61 6d | 70 6c 65 0d 0d 57 72 69 |lusTESam|ple..Wri|
|00000150| 74 74 65 6e 20 62 79 3a | 09 41 6e 64 72 65 77 20 |tten by:|.Andrew |
|00000160| 53 68 65 62 61 6e 6f 77 | 0d 0d 56 65 72 73 69 6f |Shebanow|..Versio|
|00000170| 6e 73 3a 09 09 09 31 2e | 30 30 09 09 09 09 09 09 |ns:...1.|00......|
|00000180| 41 70 72 69 6c 20 31 39 | 38 39 0d 20 20 20 20 20 |April 19|89. |
|00000190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 31 | | 1|
|000001a0| 2e 31 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.1 | |
|000001b0| 20 20 20 20 20 20 20 20 | 20 20 20 4a 75 6c 79 20 | | July |
|000001c0| 31 39 38 39 0d 09 09 09 | 09 09 31 2e 32 20 20 20 |1989....|..1.2 |
|000001d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001e0| 20 20 20 20 20 20 46 65 | 62 72 75 61 72 79 20 31 | Fe|bruary 1|
|000001f0| 39 39 30 0d 0d 43 6f 6d | 70 6f 6e 65 6e 74 73 3a |990..Com|ponents:|
|00000200| 09 09 09 43 50 6c 75 73 | 54 45 53 61 6d 70 6c 65 |...CPlus|TESample|
|00000210| 2e 6d 61 6b 65 09 09 09 | 46 65 62 72 75 61 72 79 |.make...|February|
|00000220| 20 31 2c 20 31 39 39 30 | 0d 09 09 09 09 09 54 41 | 1, 1990|......TA|
|00000230| 70 70 6c 69 63 61 74 69 | 6f 6e 43 6f 6d 6d 6f 6e |pplicati|onCommon|
|00000240| 2e 68 09 09 46 65 62 72 | 75 61 72 79 20 31 2c 20 |.h..Febr|uary 1, |
|00000250| 31 39 39 30 0d 09 09 09 | 09 09 54 41 70 70 6c 69 |1990....|..TAppli|
|00000260| 63 61 74 69 6f 6e 2e 68 | 09 09 09 09 46 65 62 72 |cation.h|....Febr|
|00000270| 75 61 72 79 20 31 2c 20 | 31 39 39 30 0d 09 09 09 |uary 1, |1990....|
|00000280| 09 09 54 44 6f 63 75 6d | 65 6e 74 2e 68 09 09 09 |..TDocum|ent.h...|
|00000290| 09 09 46 65 62 72 75 61 | 72 79 20 31 2c 20 31 39 |..Februa|ry 1, 19|
|000002a0| 39 30 0d 09 09 09 09 09 | 54 45 43 6f 6d 6d 6f 6e |90......|TECommon|
|000002b0| 2e 68 09 09 09 09 09 46 | 65 62 72 75 61 72 79 20 |.h.....F|ebruary |
|000002c0| 31 2c 20 31 39 39 30 0d | 09 09 09 09 09 54 45 53 |1, 1990.|.....TES|
|000002d0| 61 6d 70 6c 65 2e 68 09 | 09 09 09 09 46 65 62 72 |ample.h.|....Febr|
|000002e0| 75 61 72 79 20 31 2c 20 | 31 39 39 30 0d 09 09 09 |uary 1, |1990....|
|000002f0| 09 09 54 45 44 6f 63 75 | 6d 65 6e 74 2e 68 09 09 |..TEDocu|ment.h..|
|00000300| 09 09 46 65 62 72 75 61 | 72 79 20 31 2c 20 31 39 |..Februa|ry 1, 19|
|00000310| 39 30 0d 09 09 09 09 09 | 54 41 70 70 6c 69 63 61 |90......|TApplica|
|00000320| 74 69 6f 6e 2e 63 70 09 | 09 09 09 46 65 62 72 75 |tion.cp.|...Febru|
|00000330| 61 72 79 20 31 2c 20 31 | 39 39 30 0d 09 09 09 09 |ary 1, 1|990.....|
|00000340| 09 54 44 6f 63 75 6d 65 | 6e 74 2e 63 70 09 09 09 |.TDocume|nt.cp...|
|00000350| 09 46 65 62 72 75 61 72 | 79 20 31 2c 20 31 39 39 |.Februar|y 1, 199|
|00000360| 30 0d 09 09 09 09 09 54 | 45 53 61 6d 70 6c 65 2e |0......T|ESample.|
|00000370| 63 70 09 09 09 09 09 46 | 65 62 72 75 61 72 79 20 |cp.....F|ebruary |
|00000380| 31 2c 20 31 39 39 30 0d | 09 09 09 09 09 54 45 44 |1, 1990.|.....TED|
|00000390| 6f 63 75 6d 65 6e 74 2e | 63 70 09 09 09 09 46 65 |ocument.|cp....Fe|
|000003a0| 62 72 75 61 72 79 20 31 | 2c 20 31 39 39 30 0d 09 |bruary 1|, 1990..|
|000003b0| 09 09 09 09 54 45 53 61 | 6d 70 6c 65 47 6c 75 65 |....TESa|mpleGlue|
|000003c0| 2e 61 09 09 09 09 46 65 | 62 72 75 61 72 79 20 31 |.a....Fe|bruary 1|
|000003d0| 2c 20 31 39 39 30 0d 09 | 09 09 09 09 54 41 70 70 |, 1990..|....TApp|
|000003e0| 6c 69 63 61 74 69 6f 6e | 2e 72 09 09 09 09 46 65 |lication|.r....Fe|
|000003f0| 62 72 75 61 72 79 20 31 | 2c 20 31 39 39 30 0d 09 |bruary 1|, 1990..|
|00000400| 09 09 09 09 54 45 53 61 | 6d 70 6c 65 2e 72 09 09 |....TESa|mple.r..|
|00000410| 09 09 09 46 65 62 72 75 | 61 72 79 20 31 2c 20 31 |...Febru|ary 1, 1|
|00000420| 39 39 30 0d 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |990.____|________|
|00000430| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000440| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000450| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000460| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00000470| 5f 0d 0d 43 50 6c 75 73 | 54 45 53 61 6d 70 6c 65 |_..CPlus|TESample|
|00000480| 20 69 73 20 61 6e 20 65 | 78 61 6d 70 6c 65 20 61 | is an e|xample a|
|00000490| 70 70 6c 69 63 61 74 69 | 6f 6e 20 74 68 61 74 20 |pplicati|on that |
|000004a0| 64 65 6d 6f 6e 73 74 72 | 61 74 65 73 20 68 6f 77 |demonstr|ates how|
|000004b0| 20 74 6f 20 0d 69 6e 69 | 74 69 61 6c 69 7a 65 20 | to .ini|tialize |
|000004c0| 74 68 65 20 63 6f 6d 6d | 6f 6e 6c 79 20 75 73 65 |the comm|only use|
|000004d0| 64 20 54 6f 6f 6c 62 6f | 78 20 6d 61 6e 61 67 65 |d Toolbo|x manage|
|000004e0| 72 73 2c 20 6f 70 65 72 | 61 74 65 20 0d 73 75 63 |rs, oper|ate .suc|
|000004f0| 63 65 73 73 66 75 6c 6c | 79 20 75 6e 64 65 72 20 |cessfull|y under |
|00000500| 4d 75 6c 74 69 46 69 6e | 64 65 72 2c 20 68 61 6e |MultiFin|der, han|
|00000510| 64 6c 65 20 64 65 73 6b | 20 61 63 63 65 73 73 6f |dle desk| accesso|
|00000520| 72 69 65 73 2c 20 61 6e | 64 20 0d 63 72 65 61 74 |ries, an|d .creat|
|00000530| 65 2c 20 67 72 6f 77 2c | 20 61 6e 64 20 7a 6f 6f |e, grow,| and zoo|
|00000540| 6d 20 77 69 6e 64 6f 77 | 73 2e 20 20 49 74 20 64 |m window|s. It d|
|00000550| 65 6d 6f 6e 73 74 72 61 | 74 65 73 20 66 75 6e 64 |emonstra|tes fund|
|00000560| 61 6d 65 6e 74 61 6c 20 | 0d 54 65 78 74 45 64 69 |amental |.TextEdi|
|00000570| 74 20 74 6f 6f 6c 62 6f | 78 20 63 61 6c 6c 73 20 |t toolbo|x calls |
|00000580| 61 6e 64 20 54 65 78 74 | 45 64 69 74 20 61 75 74 |and Text|Edit aut|
|00000590| 6f 6d 61 74 69 63 20 73 | 63 72 6f 6c 6c 69 6e 67 |omatic s|crolling|
|000005a0| 2c 20 61 6e 64 20 69 74 | 20 0d 73 68 6f 77 73 20 |, and it| .shows |
|000005b0| 68 6f 77 20 74 6f 20 63 | 72 65 61 74 65 20 61 6e |how to c|reate an|
|000005c0| 64 20 6d 61 69 6e 74 61 | 69 6e 20 73 63 72 6f 6c |d mainta|in scrol|
|000005d0| 6c 20 62 61 72 20 63 6f | 6e 74 72 6f 6c 73 2e 0d |l bar co|ntrols..|
|000005e0| 0d 54 68 69 73 20 76 65 | 72 73 69 6f 6e 20 6f 66 |.This ve|rsion of|
|000005f0| 20 54 45 53 61 6d 70 6c | 65 20 68 61 73 20 62 65 | TESampl|e has be|
|00000600| 65 6e 20 73 75 62 73 74 | 61 6e 74 69 61 6c 6c 79 |en subst|antially|
|00000610| 20 72 65 77 6f 72 6b 65 | 64 20 69 6e 20 43 2b 2b | reworke|d in C++|
|00000620| 20 74 6f 20 0d 73 68 6f | 77 20 68 6f 77 20 61 20 | to .sho|w how a |
|00000630| d2 74 79 70 69 63 61 6c | d3 20 6f 62 6a 65 63 74 |.typical|. object|
|00000640| 2d 6f 72 69 65 6e 74 65 | 64 20 70 72 6f 67 72 61 |-oriente|d progra|
|00000650| 6d 20 63 6f 75 6c 64 20 | 62 65 20 77 72 69 74 74 |m could |be writt|
|00000660| 65 6e 2e 20 20 54 6f 20 | 0d 74 68 69 73 20 65 6e |en. To |.this en|
|00000670| 64 2c 20 77 68 61 74 20 | 77 61 73 20 6f 6e 63 65 |d, what |was once|
|00000680| 20 61 20 73 69 6e 67 6c | 65 20 73 6f 75 72 63 65 | a singl|e source|
|00000690| 20 63 6f 64 65 20 66 69 | 6c 65 20 68 61 73 20 62 | code fi|le has b|
|000006a0| 65 65 6e 20 0d 72 65 73 | 74 72 75 63 74 75 72 65 |een .res|tructure|
|000006b0| 64 20 69 6e 74 6f 20 61 | 20 73 65 74 20 6f 66 20 |d into a| set of |
|000006c0| 63 6c 61 73 73 65 73 20 | 77 68 69 63 68 20 64 65 |classes |which de|
|000006d0| 6d 6f 6e 73 74 72 61 74 | 65 20 74 68 65 20 0d 61 |monstrat|e the .a|
|000006e0| 64 76 61 6e 74 61 67 65 | 73 20 6f 66 20 6f 62 6a |dvantage|s of obj|
|000006f0| 65 63 74 2d 6f 72 69 65 | 6e 74 65 64 20 70 72 6f |ect-orie|nted pro|
|00000700| 67 72 61 6d 6d 69 6e 67 | 2e 0d 0d 54 68 65 72 65 |gramming|...There|
|00000710| 20 61 72 65 20 66 6f 75 | 72 20 6d 61 69 6e 20 63 | are fou|r main c|
|00000720| 6c 61 73 73 65 73 20 69 | 6e 20 74 68 69 73 20 70 |lasses i|n this p|
|00000730| 72 6f 67 72 61 6d 2e 20 | 20 45 61 63 68 20 6f 6e |rogram. | Each on|
|00000740| 65 20 6f 66 20 74 68 65 | 73 65 20 0d 68 61 73 20 |e of the|se .has |
|00000750| 61 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 28 2e 68 |a defini|tion (.h|
|00000760| 29 20 66 69 6c 65 20 61 | 6e 64 20 61 6e 20 69 6d |) file a|nd an im|
|00000770| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 20 28 2e 63 |plementa|tion (.c|
|00000780| 70 29 20 66 69 6c 65 2e | 0d 0d 54 68 65 20 54 41 |p) file.|..The TA|
|00000790| 70 70 6c 69 63 61 74 69 | 6f 6e 20 63 6c 61 73 73 |pplicati|on class|
|000007a0| 20 64 6f 65 73 20 61 6c | 6c 20 6f 66 20 74 68 65 | does al|l of the|
|000007b0| 20 62 61 73 69 63 20 65 | 76 65 6e 74 20 68 61 6e | basic e|vent han|
|000007c0| 64 6c 69 6e 67 20 61 6e | 64 20 0d 69 6e 69 74 69 |dling an|d .initi|
|000007d0| 61 6c 69 7a 61 74 69 6f | 6e 20 6e 65 63 65 73 73 |alizatio|n necess|
|000007e0| 61 72 79 20 66 6f 72 20 | 4d 61 63 69 6e 74 6f 73 |ary for |Macintos|
|000007f0| 68 20 54 6f 6f 6c 62 6f | 78 20 61 70 70 6c 69 63 |h Toolbo|x applic|
|00000800| 61 74 69 6f 6e 73 2e 20 | 20 49 74 20 0d 6d 61 69 |ations. | It .mai|
|00000810| 6e 74 61 69 6e 73 20 61 | 20 6c 69 73 74 20 6f 66 |ntains a| list of|
|00000820| 20 54 44 6f 63 75 6d 65 | 6e 74 20 6f 62 6a 65 63 | TDocume|nt objec|
|00000830| 74 73 20 61 6e 64 20 70 | 61 73 73 65 73 20 65 76 |ts and p|asses ev|
|00000840| 65 6e 74 73 20 74 6f 20 | 74 68 65 20 0d 63 6f 72 |ents to |the .cor|
|00000850| 72 65 63 74 20 54 44 6f | 63 75 6d 65 6e 74 20 63 |rect TDo|cument c|
|00000860| 6c 61 73 73 20 77 68 65 | 6e 20 61 70 70 72 6f 70 |lass whe|n approp|
|00000870| 72 69 61 74 65 2e 0d 0d | 54 68 65 20 54 44 6f 63 |riate...|The TDoc|
|00000880| 75 6d 65 6e 74 20 63 6c | 61 73 73 20 64 6f 65 73 |ument cl|ass does|
|00000890| 20 61 6c 6c 20 6f 66 20 | 74 68 65 20 62 61 73 69 | all of |the basi|
|000008a0| 63 20 64 6f 63 75 6d 65 | 6e 74 20 68 61 6e 64 6c |c docume|nt handl|
|000008b0| 69 6e 67 20 77 6f 72 6b | 2e 20 20 0d 54 44 6f 63 |ing work|. .TDoc|
|000008c0| 75 6d 65 6e 74 73 20 61 | 72 65 20 6f 62 6a 65 63 |uments a|re objec|
|000008d0| 74 73 20 74 68 61 74 20 | 61 72 65 20 61 73 73 6f |ts that |are asso|
|000008e0| 63 69 61 74 65 64 20 77 | 69 74 68 20 61 20 77 69 |ciated w|ith a wi|
|000008f0| 6e 64 6f 77 2e 20 20 4d | 65 74 68 6f 64 73 20 0d |ndow. M|ethods .|
|00000900| 61 72 65 20 70 72 6f 76 | 69 64 65 64 20 74 6f 20 |are prov|ided to |
|00000910| 64 65 61 6c 20 77 69 74 | 68 20 75 70 64 61 74 65 |deal wit|h update|
|00000920| 2c 20 61 63 74 69 76 61 | 74 65 2c 20 6d 6f 75 73 |, activa|te, mous|
|00000930| 65 2d 63 6c 69 63 6b 2c | 20 6b 65 79 2d 64 6f 77 |e-click,| key-dow|
|00000940| 6e 2c 20 0d 61 6e 64 20 | 6f 74 68 65 72 20 65 76 |n, .and |other ev|
|00000950| 65 6e 74 73 2e 20 20 53 | 6f 6d 65 20 61 64 64 69 |ents. S|ome addi|
|00000960| 74 69 6f 6e 61 6c 20 63 | 6c 61 73 73 65 73 20 77 |tional c|lasses w|
|00000970| 68 69 63 68 20 69 6d 70 | 6c 65 6d 65 6e 74 20 61 |hich imp|lement a|
|00000980| 20 0d 6c 69 6e 6b 65 64 | 20 6c 69 73 74 20 6f 66 | .linked| list of|
|00000990| 20 54 44 6f 63 75 6d 65 | 6e 74 20 6f 62 6a 65 63 | TDocume|nt objec|
|000009a0| 74 73 20 61 72 65 20 70 | 72 6f 76 69 64 65 64 2e |ts are p|rovided.|
|000009b0| 0d 0d 54 68 65 20 54 41 | 70 70 6c 69 63 61 74 69 |..The TA|pplicati|
|000009c0| 6f 6e 20 61 6e 64 20 54 | 44 6f 63 75 6d 65 6e 74 |on and T|Document|
|000009d0| 20 63 6c 61 73 73 65 73 | 20 74 6f 67 65 74 68 65 | classes| togethe|
|000009e0| 72 20 64 65 66 69 6e 65 | 20 61 20 62 61 73 69 63 |r define| a basic|
|000009f0| 20 0d 66 72 61 6d 65 77 | 6f 72 6b 20 66 6f 72 20 | .framew|ork for |
|00000a00| 4d 61 63 69 6e 74 6f 73 | 68 20 61 70 70 6c 69 63 |Macintos|h applic|
|00000a10| 61 74 69 6f 6e 73 2c 20 | 77 69 74 68 6f 75 74 20 |ations, |without |
|00000a20| 68 61 76 69 6e 67 20 61 | 6e 79 20 73 70 65 63 69 |having a|ny speci|
|00000a30| 66 69 63 20 0d 6b 6e 6f | 77 6c 65 64 67 65 20 61 |fic .kno|wledge a|
|00000a40| 62 6f 75 74 20 74 68 65 | 20 74 79 70 65 20 6f 66 |bout the| type of|
|00000a50| 20 64 61 74 61 20 62 65 | 69 6e 67 20 64 69 73 70 | data be|ing disp|
|00000a60| 6c 61 79 65 64 20 62 79 | 20 74 68 65 20 0d 61 70 |layed by| the .ap|
|00000a70| 70 6c 69 63 61 74 69 6f | 6e d5 73 20 64 6f 63 75 |plicatio|n.s docu|
|00000a80| 6d 65 6e 74 73 2e 20 54 | 68 65 79 20 61 72 65 20 |ments. T|hey are |
|00000a90| 61 20 28 76 65 72 79 29 | 20 63 72 75 64 65 20 69 |a (very)| crude i|
|00000aa0| 6d 70 6c 65 6d 65 6e 74 | 61 74 69 6f 6e 20 6f 66 |mplement|ation of|
|00000ab0| 20 0d 74 68 65 20 4d 61 | 63 41 70 70 20 61 70 70 | .the Ma|cApp app|
|00000ac0| 6c 69 63 61 74 69 6f 6e | 20 6d 6f 64 65 6c 2c 20 |lication| model, |
|00000ad0| 77 69 74 68 6f 75 74 20 | 74 68 65 20 73 6f 70 68 |without |the soph|
|00000ae0| 69 73 74 69 63 61 74 65 | 64 20 76 69 65 77 20 0d |isticate|d view .|
|00000af0| 68 69 65 72 61 72 63 68 | 69 65 73 20 6f 72 20 61 |hierarch|ies or a|
|00000b00| 6e 79 20 72 65 61 6c 20 | 65 72 72 6f 72 20 68 61 |ny real |error ha|
|00000b10| 6e 64 6c 69 6e 67 2e 0d | 0d 54 68 65 20 54 45 53 |ndling..|.The TES|
|00000b20| 61 6d 70 6c 65 20 63 6c | 61 73 73 20 69 73 20 61 |ample cl|ass is a|
|00000b30| 20 73 75 62 63 6c 61 73 | 73 20 6f 66 20 54 41 70 | subclas|s of TAp|
|00000b40| 70 6c 69 63 61 74 69 6f | 6e 2e 20 20 49 74 20 6f |plicatio|n. It o|
|00000b50| 76 65 72 72 69 64 65 73 | 20 0d 73 65 76 65 72 61 |verrides| .severa|
|00000b60| 6c 20 54 41 70 70 6c 69 | 63 61 74 69 6f 6e 20 6d |l TAppli|cation m|
|00000b70| 65 74 68 6f 64 73 2c 20 | 69 6e 63 6c 75 64 69 6e |ethods, |includin|
|00000b80| 67 20 74 68 6f 73 65 20 | 66 6f 72 20 68 61 6e 64 |g those |for hand|
|00000b90| 6c 69 6e 67 20 6d 65 6e | 75 20 0d 63 6f 6d 6d 61 |ling men|u .comma|
|00000ba0| 6e 64 73 20 61 6e 64 20 | 63 75 72 73 6f 72 20 61 |nds and |cursor a|
|00000bb0| 64 6a 75 73 74 6d 65 6e | 74 2c 20 61 6e 64 20 69 |djustmen|t, and i|
|00000bc0| 74 20 64 6f 65 73 20 73 | 6f 6d 65 20 6e 65 63 65 |t does s|ome nece|
|00000bd0| 73 73 61 72 79 20 0d 69 | 6e 69 74 69 61 6c 69 7a |ssary .i|nitializ|
|00000be0| 61 74 69 6f 6e 2e 20 20 | 4e 6f 74 65 20 74 68 61 |ation. |Note tha|
|00000bf0| 74 20 77 65 20 6f 6e 6c | 79 20 6e 65 65 64 20 74 |t we onl|y need t|
|00000c00| 6f 20 6f 76 65 72 72 69 | 64 65 20 6e 69 6e 65 20 |o overri|de nine |
|00000c10| 6d 65 74 68 6f 64 73 20 | 0d 74 6f 20 63 72 65 61 |methods |.to crea|
|00000c20| 74 65 20 61 20 75 73 65 | 66 75 6c 20 61 70 70 6c |te a use|ful appl|
|00000c30| 69 63 61 74 69 6f 6e 20 | 63 6c 61 73 73 2e 0d 0d |ication |class...|
|00000c40| 54 68 65 20 54 45 44 6f | 63 75 6d 65 6e 74 20 63 |The TEDo|cument c|
|00000c50| 6c 61 73 73 20 69 73 20 | 61 20 73 75 62 63 6c 61 |lass is |a subcla|
|00000c60| 73 73 20 6f 66 20 54 44 | 6f 63 75 6d 65 6e 74 2e |ss of TD|ocument.|
|00000c70| 20 20 54 68 69 73 20 63 | 6c 61 73 73 20 0d 63 6f | This c|lass .co|
|00000c80| 6e 74 61 69 6e 73 20 6d | 6f 73 74 20 6f 66 20 74 |ntains m|ost of t|
|00000c90| 68 65 20 73 70 65 63 69 | 61 6c 2d 70 75 72 70 6f |he speci|al-purpo|
|00000ca0| 73 65 20 63 6f 64 65 20 | 66 6f 72 20 74 65 78 74 |se code |for text|
|00000cb0| 20 65 64 69 74 69 6e 67 | 2e 20 20 49 6e 20 0d 61 | editing|. In .a|
|00000cc0| 64 64 69 74 69 6f 6e 20 | 74 6f 20 6f 76 65 72 72 |ddition |to overr|
|00000cd0| 69 64 69 6e 67 20 6d 6f | 73 74 20 6f 66 20 74 68 |iding mo|st of th|
|00000ce0| 65 20 54 44 6f 63 75 6d | 65 6e 74 20 6d 65 74 68 |e TDocum|ent meth|
|00000cf0| 6f 64 73 2c 20 69 74 20 | 64 65 66 69 6e 65 73 20 |ods, it |defines |
|00000d00| 61 20 0d 6e 75 6d 62 65 | 72 20 6f 66 20 61 64 64 |a .numbe|r of add|
|00000d10| 69 74 69 6f 6e 61 6c 20 | 6d 65 74 68 6f 64 73 20 |itional |methods |
|00000d20| 77 68 69 63 68 20 61 72 | 65 20 75 73 65 64 20 62 |which ar|e used b|
|00000d30| 79 20 74 68 65 20 54 45 | 53 61 6d 70 6c 65 20 63 |y the TE|Sample c|
|00000d40| 6c 61 73 73 20 0d 74 6f | 20 67 65 74 20 69 6e 66 |lass .to| get inf|
|00000d50| 6f 72 6d 61 74 69 6f 6e | 20 6f 6e 20 74 68 65 20 |ormation| on the |
|00000d60| 64 6f 63 75 6d 65 6e 74 | 20 73 74 61 74 65 2e 0d |document| state..|
|00000d70| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000d90| 20 43 6f 64 65 20 4e 6f | 74 65 73 0d 0d 0d 44 65 | Code No|tes...De|
|00000da0| 76 65 6c 6f 70 65 72 20 | 54 65 63 68 6e 69 63 61 |veloper |Technica|
|00000db0| 15 53 43 4e 2e 30 31 34 | 2e 43 50 6c 75 73 54 45 |.SCN.014|.CPlusTE|
|00000dc0| 53 61 6d 70 6c 65 02 00 | 00 00 54 45 58 54 4d 50 |Sample..|..TEXTMP|
|00000dd0| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 00 |..TEXTMP|S ......|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 a0 76 f7 e1 00 00 | 0c f1 00 00 01 7e 66 20 |...v....|.....~f |
|00000e00| 32 0d 0d 0d 0d 0d 0d 23 | 31 34 3a 20 20 43 50 6c |2......#|14: CPl|
|00000e10| 75 73 54 45 53 61 6d 70 | 6c 65 09 31 20 6f 66 20 |usTESamp|le.1 of |
|00000e20| 32 0d 0d 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |2... | |
|00000e30| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000e60| 20 20 20 20 20 20 20 0d | 0d 23 31 34 3a 09 43 50 | .|.#14:.CP|
|00000e70| 6c 75 73 54 45 53 61 6d | 70 6c 65 0d 0d 57 72 69 |lusTESam|ple..Wri|
|00000e80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000e90| 00 00 00 14 00 01 3c ac | 00 0a 01 8f 00 00 01 9a |......<.|........|
|00000ea0| 02 6b 01 12 00 00 00 06 | 00 04 00 2a 00 03 01 dd |.k......|...*....|
|00000eb0| 02 7d 01 40 00 00 01 dd | 02 3d a1 da 20 25 00 00 |.}.@....|.=.. %..|
|00000ec0| 03 f2 00 00 03 f2 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00000ed0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 59 1e 94 |...L...L|...2.Y..|
|00000ee0| 05 26 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.&.....2|..MPSR..|
|00000ef0| 00 0a 03 ed ff ff 00 00 | 00 00 00 5a c4 f0 00 00 |........|...Z....|
+--------+-------------------------+-------------------------+--------+--------+